

#ifndef __ASHINING_H
#define __ASHINING_H

#include "gd32f30x.h"
#include "stdio.h"
#include "stdlib.h"
#include <stdbool.h>


#define ASHINING_RCU_GPIOx RCU_GPIOB
#define ASHINING_GPIOx 			GPIOB

#define ASHINING_AUX_GPIO_PIN_x GPIO_PIN_2

#define ASHINING_USARTx				USART2
#define ASHINING_USARTx_IRQn	USART2_IRQn
#define ASHINING_USART_RCU		RCU_USART2

#define ASHINING_TX_GPIO_PIN_x GPIO_PIN_10
#define ASHINING_RX_GPIO_PIN_x GPIO_PIN_11

#define ASHINING_MD0_GPIO_PIN_x GPIO_PIN_12
#define ASHINING_MD1_GPIO_PIN_x GPIO_PIN_13

#define ASHININGreveive_Buffer_Len 1024

typedef struct
{
		uint8_t data[ASHININGreveive_Buffer_Len];
		uint32_t 	len;
		uint32_t  storageDataPos;
		uint32_t  ReadDataPos;
		bool status;
} ASHINING_struct;

void vashiningInit(void);
void vashiningSend(uint8_t *Buffer, uint16_t Length);


#endif   //__LED_H

